package com.atguigu.boot.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: Car
 * Package: com.atguigu.boot.bean
 * Description:只有在容器中的组件，才会拥有springboot提供的功能
 *
 * @Author Root
 * @Create 2023/3/21 9:24
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Component
@ConfigurationProperties(prefix = "mycar")
public class Car {
    private String brand;
    private Integer price;


}
